#include<iostream>
using namespace std;
#include"BSTree.h"
/*class A
{

public:

	A() :m_iVal(0){ test(); }

	virtual void func() { std::cout << m_iVal << ' '; }

	void test(){ func(); }

public:

	int m_iVal;

};



class B : public A
{

public:

	B(){ test(); }

	virtual void func()

	{

		++m_iVal;

		std::cout << m_iVal << ' ';

	}

};*/


void Test1()
{
	
	/*	A*p = new B;

		p->test();
	*/
	BSTree<int> tree;

	tree.insert(1);
	tree.insert(3);
	tree.insert(2);
	tree.insert(8);
	tree.insert(6);
	tree.insert(10);
	tree.Inorder();
	cout << '\n';

	/*tree.Erase(6);
	tree.Inorder();
	cout << '\n';*/

	/*tree.Erase(8);
	tree.Inorder();*/
	cout << endl;
}


int main()
{
	Test1();

	return 0;
}